{% extends "admin/base.html" %}

{% block admin_content %}
<div class="card">
    <div class="card-header py-3 d-flex justify-content-between align-items-center">
        <h6 class="m-0 font-weight-bold text-primary">抽题统计</h6>
    </div>
    <div class="card-body">
        <div class="table-responsive">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th>题目编号</th>
                        <th>题目内容</th>
                        <th>被抽取次数</th>
                    </tr>
                </thead>
                <tbody>
                    {% for stat in question_stats %}
                    <tr>
                        <td>{{ stat.id }}</td>
                        <td>{{ stat.content }}</td>
                        <td>
                            <span class="badge bg-primary rounded-pill">{{ stat.draw_count }}</span>
                        </td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
</div>
{% endblock %} 